<?php $duans = $this->requestAction('duans/vipprojects'); ?>
<?php foreach($duans as $duan): ?>	
<div class="main_content">
	<a href="<?php echo $this->webroot;?>project-<?php echo $duan['Duan']['id'];?>/<?php echo str_replace(" ","-",$duan['Duan']['tieude'])?>.html"><img src="<?php echo $this->webroot;?>app/webroot/upload/<?php echo $duan['Duan']['hinhdaidien'];?>" alt="<?php echo $duan['Duan']['tieude'];?>" /></a>
	<div class="sub_content">
		<div class="s_left">
			<div class="title"><a href="<?php echo $this->webroot;?>project-<?php echo $duan['Duan']['id'];?>/<?php echo str_replace(" ","-",$changetv->changetvkd($duan['Duan']['tieude']))?>.html"><?php echo $duan['Duan']['tieude'];?></a></div>
			<div class="address"><?php echo $duan['Duan']['diachi'];?></div>
			<div class="desc">
				<?php echo $duan['Duan']['mota'];
					/*echo $this->Text->truncate(
						$duan['Duan']['noidung'],
						400,
						array(
							'ending' => '...',
							'exact' => false
						)
					);*/
				?>
			</div>
		</div>

		<div class="s_right">
			<div class="cproject">Chủ đầu tư</div>
			<div class="project_name">
				<ul>
					<li><a href="javascript:void(0)"><b><?php echo $duan['Duan']['chudautu'];?></b></a></li>
				</ul>
			</div>
			<div class="cproject">Tình trạng</div>
			<div class="project_name">
				<ul>
					<li>
						<?php 
							echo $duan['Duan']['tinhtrang'];
						?>
					</li>
				</ul>
				<div style="font-size:11px;">Giá giao dịch </div>
				<ul>
					<li>
						<?php echo $duan['Duan']['sdtlienlac'];?>                                   
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>

<div class="more_content">
<a href="<?php echo $this->webroot;?>project-<?php echo $duan['Duan']['id'];?>/<?php echo str_replace(" ","-",$duan['Duan']['tieude'])?>.html">Xem chi tiết dự án này</a>
</div>
<?php endforeach; ?>